package com.sensen.model;

import com.sensen.common.BaseEntity;

import javax.persistence.Table;
import javax.persistence.Transient;


/**
 * Created by Administrator on 2017/10/2.
 */

@Table(name = "user")
public class User extends BaseEntity{

    private Integer state;
    private String username;

    //以下属性用于演示范围查询
    @Transient
    private Integer startAge;
    @Transient
    private Integer endAge;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getStartAge() {
        return startAge;
    }

    public void setStartAge(Integer startAge) {
        this.startAge = startAge;
    }

    public Integer getEndAge() {
        return endAge;
    }

    public void setEndAge(Integer endAge) {
        this.endAge = endAge;
    }
}
